<?php foreach ($courses as $k => $v):?>
    <option value="<?php echo $k;?>"><?php echo $v;?></option>
<?php endforeach;?>
